<?php

/**
 * Thesis
 * 论文
 *
 * @author ddj
 */
class Thesis {
    private $name;              // 论文名称
    private $ownerAuthor;       // 所有作者
    private $responsibleAuthor; // 责任作者
    
    function __construct($name, $ownerAuthor, $responsibleAuthor) {
        $this->name = $name;
        $this->ownerAuthor = $ownerAuthor;
        $this->responsibleAuthor = $responsibleAuthor;
    }
    
    function __get($propertyName) {
        if(isset($this->$propertyName)){
            return $this->$propertyName;
        }else{
            //
            return NULL;
        }
    }
    
    function __set($propertyName, $value) {
        $this->$propertyName = trim($value);
    }
    
}
